import React from 'react';
import { Swiper } from 'antd-mobile';

export default function banner(props: any) {
  const barImg_list = props.barImg_list;

  return (
    <div>
      <Swiper autoplay loop>
        {barImg_list.map((item: any, index: any) => {
          return (
            <Swiper.Item key={index}>
              <img
                src={item}
                alt=""
                style={{ width: '100%', height: '200px' }}
              />
            </Swiper.Item>
          );
        })}
      </Swiper>
    </div>
  );
}
